import service from "@/utils/request.js";

// 用户登录
export function userLoginApi(data) {
    return service({
        url: "/users/login",
        method: "post",
        data: data
    })
}

// 用户列表

export function userListApi(data) {
    return service({
        url: "/users/list",
        method: "get",
        params: data
    })
}

// 用户修改
export function userEditApi(data) {
    return service({
        url: "/users/edit",
        method: "post",
        data: data
    })
}

// 删除用户
export function userDeleApi(data) {
    return service({
        url: "/users/dele",
        method: "get",
        params: data
    })
}